# -^- coding: utf-8 -^-

#Version 0.1
#Author: André Lascas
#Basic Project of a game menu

##########################################################
import sys
import time
#sys.exit()

#Some variables
ld1 = "Fire Pits of Doom"
ld2 = "Frozen Wastes"
ld3 = "Angelic Palace"

# Start menu
print (30 * "*")
print ("*  M  A  I  N    M  E  N  U  *")
print (30 * "*")
print 
print ("Start your engines! - New game")
print ("Oh you returned? Neat! - Load game")
print ("Want to change things? - Options")
print

"""Convert string to int
strld1 = int (ld1)
strld2 = int (ld2)
strld3 = int (ld3)
"""

#Get the initial input
choose = raw_input("So what you wanna do?: ")

#Method that shows and calls a selection of a load game	
def loadgame (str1, str2, str3):
	while True:
		print "Load 1: %s\nLoad 2: %s\nLoad 3: %s" % (ld1, ld2, ld3)
		ldchoose = raw_input("Where did you stayed last time?: ")
		if ldchoose == "%s" % ld1:
			a = " Loading %s..." % ld1
			while True:
				for i in ['\\', '|', '/', '-', '|']:
					print a + "%s\r" % i, #if there is a comma (,), the string will be put on the same line
			break

		elif ldchoose == "%s" % ld2:
			b = "Loading %s..." % ld2
			while True:
				for i in ['\\', '|', '/', '-', '|']:
					print b + "%s\r" % i,
			break
		elif ldchoose == "%s" % ld3:
			c = "Loading %s..." % ld3
			while True:
				for i in ['\\', '|', '/', '-', '|']:
					print c + "%s\r" % i,
			break
		else:
			print "Save not found! Choose again..."
			continue
		return;

#Action performed
if choose == "New game":
	print "Let's roll out!\nStarting adventure..."
elif choose == "Load game":
	loadgame(ld1, ld2, ld3);
elif choose == "Options":
	print "CAREFULL! Don't push your PC to exhaustion... JK LOL"
else:
	print "You can't even type correctly... TRY AGAIN NOOB!"



